package object02;

/**
 * @TODO
 * @Author xu
 * 2025/3/12
 */
public class StringBuilder02 {

    public static void main(String[] args) {
        String original = "hello";
        StringBuilder sb = new StringBuilder(original);

        String reversed = sb.reverse().toString(); // 调用reverse()方法进行反转

        System.out.println("反转后的字符串: " + reversed);
    }
}
